import axios from '@/utils/axios';
export const getTimeLimitSpuPage = (params) => {
    return axios.request({
        url: '/activity/spu/time-limit/page',
        method: 'get',
        params
    });
};

export const getTimeLimitPage = (params) => {
    return axios.request({
        url: '/market/time-limit/page',
        method: 'get',
        params
    });
};
export const getTimeLimitById = (id) => {
    return axios.request({
        url: '/market/time-limit/' + id,
        method: 'get'
    });
};

export const addTimeLimit = (data) => {
    return axios.request({
        url: '/market/time-limit/',
        method: 'post',
        data
    });
};
export const editTimeLimit = (data) => {
    return axios.request({
        url: '/market/time-limit/',
        method: 'put',
        data
    });
};

export const endTimeLimit = (id) => {
    return axios.request({
        url: '/market/time-limit/end/' + id,
        method: 'put'
    });
};
export const deleteTimeLimit = (id) => {
    return axios.request({
        url: '/market/time-limit/' + id,
        method: 'delete'
    });
};
